|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectraar.agent.process.RAProcess
raar.agent.process.actor.RAActor
raar.agent.process.actor.RAFactory
public class RAFactory
The factory actor is able to construct and remove objects to/from the world.
| Field Summary |
|---|
| Fields inherited from class raar.agent.process.RAProcess |
|---|
hasRun, inregister, outregister, register, sourceCode, statement |
| Fields inherited from interface raar.agent.process.RAAgentDependentProcess |
|---|
NO_AGENT_DEFINED |
| Fields inherited from interface raar.agent.process.RAWorldDependentProcess |
|---|
NO_OBJECT_DEFINED |
| Constructor Summary | |
|---|---|
RAFactory(RAAgent agent,
java.lang.String className)
Construct, say which agent owns the actor and which class name it can construct. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Describe the actor. |
java.lang.String |
getProcessableName()
Return the processable class (or object) name. |
boolean |
isInputValid(RADataType d)
Return whether input is valid. |
boolean |
isProcessable(RAWorldObject obj)
Return whether the object in question is processable by this process based on the current configuration. |
boolean |
isSuitable(RAWorldObject obj)
Return whether the object in question is suitable for this process, i.e. processable either with the current or an other configuration. |
void |
removeReferenceToAgent()
Remove agent reference. |
void |
run()
Run the actor. |
void |
setProcessableName(java.lang.String name)
Set the processable class (or object) name. |
void |
setReferenceToAgent(RAAgent a)
Restore agent reference. |
java.lang.String |
toString()
To string. |
boolean |
usesClasses()
Return whether this processes uses world classes (true) or objects (false). |
| Methods inherited from class raar.agent.process.actor.RAActor |
|---|
acceptsInput, dumpRegisters, execute, get, getActorValue, getDataType, getInputNames, getInputObjects, getOutputNames, getOutputObjects, set, setSourceCode |
| Methods inherited from class raar.agent.process.RAProcess |
|---|
clone, getProcessName, getSourceCode, isSpecial, reset, setProcessName, suppliesOutput |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RAFactory(RAAgent agent,
java.lang.String className)
| Method Detail |
|---|
public void removeReferenceToAgent()
removeReferenceToAgent in interface RAAgentDependentProcesspublic void setReferenceToAgent(RAAgent a)
setReferenceToAgent in interface RAAgentDependentProcess
public void run()
throws RAException
run in class RAActorRAExceptionpublic boolean isInputValid(RADataType d)
isInputValid in class RAActorpublic boolean isSuitable(RAWorldObject obj)
isSuitable in interface RAWorldDependentProcesspublic boolean isProcessable(RAWorldObject obj)
isProcessable in interface RAWorldDependentProcesspublic boolean usesClasses()
usesClasses in interface RAWorldDependentProcesspublic java.lang.String getProcessableName()
getProcessableName in interface RAWorldDependentProcesspublic void setProcessableName(java.lang.String name)
setProcessableName in interface RAWorldDependentProcesspublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getDescription()
getDescription in class RAActor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||